<%@ include file="/taglibs.jsp"%>

<div class="pageContent" layoutH="0">	
<form method="post" action="contract_save.do" class="pageForm required-validate" onsubmit="return validateCallback(this,callBackCloseCurrrentPanel)">
	<div class="pageFormContent" layoutH="56">
	<fieldset>
	<legend><s:property value="staff.name"/>&nbsp;已签订合同</legend>
	<table class="table" width="100%">
	<thead>
	<tr>
	<th>序 号</th>
	<th>开始时间</th>
	<th>截止时间</th>
	<th>描 述</th>
	</tr>
	</thead>
	<tbody>
	<s:iterator value="contractLst" status="ct">
	<tr>	
	<td><s:property value="#ct.index+1"/></td>
	<td><s:date name="startTime" format="yyyy-MM-dd"/></td>
	<td><s:date name="endTime" format="yyyy-MM-dd"/></td>
	<td><s:property value="desc"/></td>
	</tr>
	</s:iterator>
	</tbody>
</table>
	</fieldset>

	<fieldset>
		<legend><s:property value="staff.name"/>&nbsp;添加新的合同</legend>
			<dl>
				<dt>开始时间：</dt>
				<dd><input type="text" name="contract.startTime" class="date required" dateFmt="yyyy-M-d"/></dd>
			</dl>
			<dl>
				<dt>截止时间：</dt>
				<dd><input type="text" name="contract.endTime" class="date required" dateFmt="yyyy-M-d"/></dd>
			</dl>
			<dl>
				<dt>描 述：</dt>
				<dd><input name="contract.desc" type="text"/></dd>
			</dl>
	</fieldset>
	</div>
	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
	</div>
	<input type="hidden" name="staff.staffId" value="<s:property value="staff.staffId"/>" />
</form>
</div>